package com.woniuxy.dao;

import com.woniuxy.pojo.Car;
import com.woniuxy.pojo.Dictionary;
import com.woniuxy.pojo.Driver;
import com.woniuxy.pojo.PeccancyRecord;
import com.woniuxy.vo.PeccancyRecordVo;
import org.apache.tomcat.jni.Directory;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PeccancyRecordMapper {
    List<PeccancyRecord> selectByCondition(PeccancyRecordVo peccancyRecordVo);

    int insert(PeccancyRecord peccancyRecord);

    int update(PeccancyRecord peccancyRecord);

    int deleteById(int id);

    Car selectCarById(int id);
    Driver selectDriverById(int id);
    Directory selectDictionaryById(int id);

    List<Car> selectAllCars();
    List<Driver> selectAllDrivers();
    List<Dictionary> selectAllOptions();
}